import { FiFileText } from 'react-icons/fi';
import React from 'react';

interface NavItem {
  title: string;
  path?: string;
  icon?: React.ReactNode;
  children?: NavItem[];
}

export const navItems: NavItem[] = [
  {
    title: 'JavaSE',
    icon: <FiFileText />,
    children: [
      { title: 'Java环境搭建', path: '/java/javase/env-setup' },
      { title: 'Java基础语法', path: '/java/javase/basic-syntax' },
      { title: 'Java数据类型', path: '/java/javase/data-types' },
      { title: 'Java常量和变量', path: '/java/javase/constants-variables' },
      { title: 'Java进制和存储', path: '/java/javase/number-systems' },
      { title: 'Java运算符', path: '/java/javase/operators' },
      { title: 'Java流程控制', path: '/java/javase/control-flow' },
      { title: 'Java数组', path: '/java/javase/arrays' },
      { title: 'Java面向对象上', path: '/java/javase/oop-basic' },
      { title: 'Java面向对象下', path: '/java/javase/oop-advanced' },
      { title: 'Java异常机制', path: '/java/javase/exceptions' },
      { title: 'Java枚举', path: '/java/javase/enums' },
      { title: 'Java反射机制', path: '/java/javase/reflection' },
      { title: 'Java代理模式', path: '/java/javase/proxy-pattern' },
      { title: 'Java泛型', path: '/java/javase/generics' },
      { title: 'Java序列化', path: '/java/javase/serialization' },
      { title: 'Java多线程详解', path: '/java/javase/multithreading' },
      { title: 'Java线程池相关', path: '/java/javase/thread-pool' }
    ],
  },
];